//
//  BHStadiumDetailPlaceInfoCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/6.
//

import UIKit

class BHStadiumDetailPlaceInfoCell: UITableViewCell {

    @IBOutlet weak var stadium_name_label: UILabel!
    
    @IBOutlet weak var goStadiumDetailBtn: UIButton!
    
    
    @IBOutlet weak var icon_imageView: UIImageView!
    
    
    @IBOutlet weak var pro_name_label: UILabel!
    
    @IBOutlet weak var price_label: UILabel!
    
    @IBOutlet weak var address_label: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    
    
    var model: BHUserOrderDetailModel! {
        didSet {
            if model.orderId.isEmpty == true {
                return
            }
            
            self.stadium_name_label.text = model.venueName
            self.icon_imageView.sd_setImage(with: URL.init(string: model.photo), completed: nil)
            self.pro_name_label.text = model.title
            self.price_label.text = "¥\(model.payPrice)"
            self.address_label.text = model.address
        }
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    static var cellHeight: CGFloat {
        get {
            return 187
        }
    }
}
